{% extends "base.html" %}

{% block title %}{% endblock %}

{% block content %}
<div id="main_content" style="margin: 0 auto">
	<div id="recent_recalls" class="sec">
		<ul>
			{% for r in recalls %}
			<li style="margin-bottom:0;padding-bottom:0;border:0">
				<div class="date left">{% ifchanged %}{{ r.when|date:"N j Y" }}{% endifchanged %}&nbsp;</div>
				<div class="info left">
					<div class="product">
						{% if r.description %}{{ r.description|safe }}{% else %}{{ r.brand_name|safe }}{% endif %} &mdash; 
						<a href="{% url recallviewer.views.company_view r.company.id %}">{{ r.company.name|safe }}</a></div>
					<div class="reason">{{ r.reason|default:"Unknown" }}</div>
					<div class="summary">{{ r.summary|default:""|safe }}</div>
					<div class="press_release small">
						<a href="{% url recallviewer.views.recall_view r.id %}">#</a> / 
						Press release: {{ r.release_link|safe|urlizetrunc:20 }}
						{% if r.photo_link %}/ Photo: {{ r.photo_link|safe|urlizetrunc:20 }}{% endif %}
					</div>
				</div>
				<div class="clr"></div>
			</li>
			{% endfor %}
		</ul>
	</div><!-- @end recent_recalls -->
</div><!-- @end main_content -->

{% endblock %}